package com.yangye.springclouddemokafka.listener;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @author yangye
 * @date 2020/07/16
 */
@Component
public class KafkaConsumer {

	@KafkaListener(topics = "topic-test", groupId = "testGroup")
	public void listen(String msg) {
		System.out.println("consumer1接收到消息：" + msg);
	}
}
